import request from '@/config/axios'

export type TONGUETENANTVO = {
  id?: number
  tongueTenantId?:number
  tenantName?:string
  tongueQuota?: number
  expiredTime?: number
  status: number
}

export const TongueTenantApi = {
  // 更新舌诊租户
  putTenantUpdate: async (data: TONGUETENANTVO) => {
    return request.put({ url: '/application/tongue-tenant/update', data })
  },
  // 更新舌诊租户状态
  putTenantUpdateStatus: async (data: TONGUETENANTVO) => {
    return request.put({ url: '/application/tongue-tenant/update-status', data })
  },
  // 创建舌诊租户
  setTenantUpdate: async (data: TONGUETENANTVO) => {
    return request.post({ url: '/application/tongue-tenant/create', data })
  },
  // 获得舌诊租户记录分页
  getTenantRecordPage: async(params) => {
    return request.get({ url: '/application/tongue-tenant/record/page',params })
  },
  // 获得舌诊租户分页
  getTenantPage: async(params) => {
    return request.get({ url: '/application/tongue-tenant/page',params })
  },
  // 获得舌诊租户
  getTenant: async(params) => {
    return request.get({ url: '/application/tongue-tenant/get',params })
  },
  // 删除舌诊租户
  delTenant: async(params) => {
    return request.get({ url: '/application/tongue-tenant/delete',params })
  }
}